﻿
@using giaoxuhaison.Models;

@{
    ViewBag.Title = "NewInform";    
}

@{
    var lstItem = (List<vw_SpecialNewsAll>)ViewData["lstNews"];
    //var lstOtherNews = (List<vw_NewsAll>)ViewData["lstOtherNews"];        
}

<!-- load phan tin tức mới bên phải -->
@*<div id="HappyNews">
    <a href='#'>
        <img src='t' align="left" alt = "" style="width:50px; height:40px; max-width:50px; max-height:40px;"/>                        
    </a>
    <div id="HappyLink" align="center">
        <a href='#'>
            <span style="padding-left:5px;"> test
            </span>
        </a>
    </div>
</div>
*@

<ul class="GodTitleItem">
    @if(lstItem != null && lstItem.Count > 0)
    {
        var i = 0;

        foreach (var item in lstItem)
        {
            
            i = i + 1;
            <li>
                <a href='@Url.Action("HappyNewsDetail", "Categories", new { NewsID = item.NewsID, GroupID = item.GroupID })'>
                @*<img width="50" align=left height="40" src='@Url.Content(item.ImageContentUrl)' style="margin-right:5px;"/>*@
                <div id="HappyLink" align="center" style="font-size:12px;font-weight:normal;"><span>@MvcHtmlString.Create(@item.ShortcutText.Replace("<br/><i>Kết Hôn Cùng</i><br/>", "<br/> & <br/>"))</span></div>
                </a>
            </li>
            if (i != lstItem.Count)
            {
                <li class="clear"></li>
            }
        }
    }
    
</ul>

@*
<img width="50" align="left" src="http://baodientu.chinhphu.vn/Uploaded/tkts/2013_12_22/_BAC0141.jpg?maxwidth=50" style="margin-right:5px;">
<span style="padding-bottom:3px;display: inline-block;float: left;width: 125px;">Hoạt động nổi bật của Lãnh đạo Chính phủ trong tuần</span>
*@